-- GENERATED SPELL FOR [Twilight Bodyguard] --


function spell0_8914(pUnit, Event) --@Fist of Ragnaros,n/a--
pUnit:FullCastSpellOnTarget(13902,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8914', 5272, 1)
end

function spell1_8914(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(15615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8914', 5315, 1)
end

function spell2_8914(pUnit, Event) --@Seal of Sacrifice,n/a--
pUnit:FullCastSpellOnTarget(13903,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8914', 30273, 1)
end

function Sorts_8914(pUnit, Event)
local choix_sorts_8914 = math.random(0, 2)
if choix_sorts_8914 == 0 then
pUnit:RegisterEvent('spell0_8914', 1, 1)
end
if choix_sorts_8914 == 1 then
pUnit:RegisterEvent('spell1_8914', 1, 1)
end
if choix_sorts_8914 == 2 then
pUnit:RegisterEvent('spell2_8914', 1, 1)
end
end

function mob8914_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8914', math.random(1500, 3000), 1)
end

function mob8914_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8914_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8914_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8914, 1, 'mob8914_Action')
RegisterUnitEvent(8914, 2, 'mob8914_Leave')
RegisterUnitEvent(8914, 3, 'mob8914_Kill')
RegisterUnitEvent(8914, 4, 'mob8914_Die')
